﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccess;

namespace BusinessLogic
{
   public  class AccountBL
    {
       AccountDA accountDA = new AccountDA();
       public DataTable Diplay(CardEntites card)
       {
           return AccountDA.GetBalance(card);
       }
       //Nhất

       public bool CheckAccountID(AccountEntites a)
       {
           if (accountDA.GetAccountID(a) == true)
           {
               return true;
           }
           else
           {
               return false;
           }
       }
       //QuocPN
       public bool CheckWithdraw(AccountEntites accountE, CardEntites cardE)
       {
           accountDA.CheckWithdraw(accountE, cardE);
           return true;
       }
       //QuocPN
       public Decimal getBalance(CardEntites cardE)
       {
           return accountDA.getBalance(cardE);
       }
    }
}
